.class public Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Lcom/waiqin365/lightwork/tracker/model/f;

.field private f:Landroid/graphics/Paint;

.field private g:Lcom/waiqin365/lightwork/tracker/model/b;

.field private h:I

.field private i:Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Ljava/lang/String;

.field private l:Lcom/baidu/mapapi/map/MapView;

.field private m:Lcom/baidu/mapapi/map/BaiduMap;

.field private n:Z

.field private o:Lcom/baidu/mapapi/model/LatLng;

.field private p:Lcom/baidu/mapapi/map/PolylineOptions;

.field private q:Lcom/baidu/mapapi/map/PolylineOptions;

.field private r:Lcom/baidu/mapapi/map/PolylineOptions;


# direct methods
.method public constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->f:Landroid/graphics/Paint;

    iput-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->g:Lcom/waiqin365/lightwork/tracker/model/b;

    const/4 v0, -0x1

    iput v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->h:I

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->i:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->j:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->k:Ljava/lang/String;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->n:Z

    iput-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->o:Lcom/baidu/mapapi/model/LatLng;

    return-void
.end method

.method private a()V
    .locals 5

    const v0, 0x7f0c0bd5

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->a:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->a:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightwork/tracker/m;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/tracker/m;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0bd7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->b:Landroid/widget/TextView;

    const v1, 0x7f080251

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->j:Ljava/lang/String;

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0bda

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->c:Landroid/widget/TextView;

    const v1, 0x7f0807d9

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->c:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    const v0, 0x7f0c0ba6

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->d:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->k:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private a(Lcom/baidu/mapapi/model/LatLng;Lcom/baidu/mapapi/model/LatLng;)V
    .locals 2

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-interface {v0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->p:Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/PolylineOptions;->points(Ljava/util/List;)Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->q:Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/PolylineOptions;->points(Ljava/util/List;)Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->r:Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/PolylineOptions;->points(Ljava/util/List;)Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->p:Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->q:Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->r:Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->d()V

    return-void
.end method

.method private a(Lcom/waiqin365/lightwork/tracker/model/aa;IZ)V
    .locals 6

    const/4 v2, 0x0

    const/4 v3, 0x2

    const/4 v1, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->f:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->f:Landroid/graphics/Paint;

    const/16 v1, 0x10

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->b(I)I

    move-result v1

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->f:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->f:Landroid/graphics/Paint;

    const/high16 v1, -0x1000000

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p1, Lcom/waiqin365/lightwork/tracker/model/aa;->b:Ljava/lang/String;

    const/16 v2, 0x2c

    invoke-static {v0, v2, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ne v0, v3, :cond_0

    :try_start_0
    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    const/4 v0, 0x0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v4

    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v0

    invoke-direct {v2, v4, v5, v0, v1}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iget-wide v0, v2, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iget-wide v2, v2, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    const/4 v4, 0x2

    invoke-static {v0, v1, v2, v3, v4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    const/4 v2, 0x0

    aget-wide v2, v0, v2

    const/4 v4, 0x1

    aget-wide v4, v0, v4

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f030277

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    const v0, 0x7f0c0c33

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget-object v3, p1, Lcom/waiqin365/lightwork/tracker/model/aa;->a:Ljava/lang/String;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-eqz p3, :cond_1

    const v3, 0x7f0203e4

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :goto_0
    invoke-static {v2}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromView(Landroid/view/View;)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v0

    new-instance v2, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v2}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    invoke-virtual {v2, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/baidu/mapapi/map/MarkerOptions;->draggable(Z)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v2, p1, Lcom/waiqin365/lightwork/tracker/model/aa;->a:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/baidu/mapapi/map/MarkerOptions;->title(Ljava/lang/String;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/baidu/mapapi/map/MarkerOptions;->zIndex(I)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v2, v0}, Lcom/baidu/mapapi/map/BaiduMap;->addOverlay(Lcom/baidu/mapapi/map/OverlayOptions;)Lcom/baidu/mapapi/map/Overlay;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->o:Lcom/baidu/mapapi/model/LatLng;

    if-nez v0, :cond_2

    new-instance v0, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v2, v1, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iget-wide v4, v1, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    invoke-direct {v0, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->o:Lcom/baidu/mapapi/model/LatLng;

    :cond_0
    :goto_1
    return-void

    :cond_1
    const v3, 0x7f0203e3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setBackgroundResource(I)V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1

    :cond_2
    if-nez p3, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->o:Lcom/baidu/mapapi/model/LatLng;

    invoke-direct {p0, v0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->a(Lcom/baidu/mapapi/model/LatLng;Lcom/baidu/mapapi/model/LatLng;)V

    :cond_3
    new-instance v0, Lcom/baidu/mapapi/model/LatLng;

    iget-wide v2, v1, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iget-wide v4, v1, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    invoke-direct {v0, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->o:Lcom/baidu/mapapi/model/LatLng;
    :try_end_0
    .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    goto :goto_1
.end method

.method private b()V
    .locals 6

    const/4 v4, 0x2

    const/4 v3, 0x0

    const/4 v2, 0x1

    const v0, 0x7f0c0ba7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/MapView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->l:Lcom/baidu/mapapi/map/MapView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->l:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->getMap()Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, v2}, Lcom/baidu/mapapi/map/BaiduMap;->setMapType(I)V

    const/high16 v0, 0x41600000    # 14.0f

    invoke-static {v0}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomTo(F)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->setMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getUiSettings()Lcom/baidu/mapapi/map/UiSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/baidu/mapapi/map/UiSettings;->setZoomGesturesEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, v3}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->l:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0, v2}, Lcom/baidu/mapapi/map/MapView;->showScaleControl(Z)V

    new-instance v0, Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-direct {v0}, Lcom/baidu/mapapi/map/PolylineOptions;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->p:Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->p:Lcom/baidu/mapapi/map/PolylineOptions;

    const/16 v1, 0x17

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/PolylineOptions;->width(I)Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->p:Lcom/baidu/mapapi/map/PolylineOptions;

    const-string/jumbo v1, "#486a00"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/PolylineOptions;->color(I)Lcom/baidu/mapapi/map/PolylineOptions;

    new-instance v0, Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-direct {v0}, Lcom/baidu/mapapi/map/PolylineOptions;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->q:Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->q:Lcom/baidu/mapapi/map/PolylineOptions;

    const/16 v1, 0x14

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/PolylineOptions;->width(I)Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->q:Lcom/baidu/mapapi/map/PolylineOptions;

    const-string/jumbo v1, "#91d473"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/PolylineOptions;->color(I)Lcom/baidu/mapapi/map/PolylineOptions;

    new-instance v0, Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-direct {v0}, Lcom/baidu/mapapi/map/PolylineOptions;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->r:Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->r:Lcom/baidu/mapapi/map/PolylineOptions;

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/PolylineOptions;->width(I)Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->r:Lcom/baidu/mapapi/map/PolylineOptions;

    invoke-virtual {v0, v2}, Lcom/baidu/mapapi/map/PolylineOptions;->dottedLine(Z)Lcom/baidu/mapapi/map/PolylineOptions;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->r:Lcom/baidu/mapapi/map/PolylineOptions;

    const v1, 0x7f020022

    invoke-static {v1}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromResource(I)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/PolylineOptions;->customTexture(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/PolylineOptions;

    new-instance v0, Lcom/waiqin365/lightwork/tracker/model/b;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/tracker/model/b;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->g:Lcom/waiqin365/lightwork/tracker/model/b;

    invoke-static {}, Lcom/waiqin365/lightwork/tracker/model/f;->a()Lcom/waiqin365/lightwork/tracker/model/f;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->e:Lcom/waiqin365/lightwork/tracker/model/f;

    iget v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->h:I

    if-ltz v0, :cond_0

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->e:Lcom/waiqin365/lightwork/tracker/model/f;

    iget v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->h:I

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/model/f;->a(I)Lcom/waiqin365/lightwork/tracker/model/aa;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/aa;->b:Ljava/lang/String;

    const/16 v2, 0x2c

    invoke-static {v0, v2, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ne v0, v4, :cond_0

    :try_start_0
    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    const/4 v0, 0x0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v4

    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v0

    invoke-direct {v2, v4, v5, v0, v1}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iget-wide v0, v2, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iget-wide v2, v2, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    const/4 v4, 0x2

    invoke-static {v0, v1, v2, v3, v4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    const/4 v2, 0x0

    aget-wide v2, v0, v2

    const/4 v4, 0x1

    aget-wide v4, v0, v4

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {v1}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->n:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    new-instance v0, Lcom/waiqin365/lightwork/tracker/n;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/tracker/n;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/n;->start()V

    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->c()V

    return-void
.end method

.method private c()V
    .locals 7

    const/4 v6, 0x2

    const/4 v5, 0x1

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->e:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/f;->c()I

    move-result v2

    move v0, v1

    :goto_0
    if-ge v0, v2, :cond_1

    iget-object v3, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->e:Lcom/waiqin365/lightwork/tracker/model/f;

    invoke-virtual {v3, v0}, Lcom/waiqin365/lightwork/tracker/model/f;->a(I)Lcom/waiqin365/lightwork/tracker/model/aa;

    move-result-object v3

    iget-object v4, v3, Lcom/waiqin365/lightwork/tracker/model/aa;->b:Ljava/lang/String;

    if-eqz v4, :cond_0

    iget-object v4, v3, Lcom/waiqin365/lightwork/tracker/model/aa;->b:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    if-lez v4, :cond_0

    invoke-direct {p0, v3, v0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->a(Lcom/waiqin365/lightwork/tracker/model/aa;IZ)V

    iget v3, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->h:I

    const/4 v4, -0x1

    if-ne v3, v4, :cond_0

    iput v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->h:I

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->e:Lcom/waiqin365/lightwork/tracker/model/f;

    iget v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->h:I

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/model/f;->a(I)Lcom/waiqin365/lightwork/tracker/model/aa;

    move-result-object v0

    const/16 v1, 0x3e8

    invoke-direct {p0, v0, v1, v5}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->a(Lcom/waiqin365/lightwork/tracker/model/aa;IZ)V

    iget-boolean v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->n:Z

    if-nez v1, :cond_2

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/aa;->b:Ljava/lang/String;

    const/16 v2, 0x2c

    invoke-static {v0, v2, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ne v0, v6, :cond_2

    :try_start_0
    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    const/4 v0, 0x0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v4

    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v0

    invoke-direct {v2, v4, v5, v0, v1}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iget-wide v0, v2, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iget-wide v2, v2, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    const/4 v4, 0x2

    invoke-static {v0, v1, v2, v3, v4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    const/4 v2, 0x0

    aget-wide v2, v0, v2

    const/4 v4, 0x1

    aget-wide v4, v0, v4

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {v1}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->newLatLng(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->m:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->n:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_2
    :goto_1
    return-void

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method private d()V
    .locals 1

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->back()V

    return-void
.end method


# virtual methods
.method public onBackPressed()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->d()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "locindex"

    const/4 v2, -0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->h:I

    const-string/jumbo v1, "locname"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->j:Ljava/lang/String;

    const-string/jumbo v1, "locdata"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->i:Ljava/lang/String;

    const-string/jumbo v1, "loctitle"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->k:Ljava/lang/String;

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030262

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->b()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->l:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onDestroy()V

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method

.method protected onPause()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->l:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onPause()V

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onPause()V

    return-void
.end method

.method protected onResume()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerDetailMapActivity;->l:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onResume()V

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onResume()V

    return-void
.end method
